
package com.eden.geoedu.view;

import com.eden.geoedu.GameIdConstants;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class HelpAboutActivity extends TabActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate( savedInstanceState);
        
        TabHost host = getTabHost();
        Intent help_intent = new Intent( GameIdConstants.HELP_ACTION,
                                         null,
                                         this,
                                         HelpActivity.class);
        Intent about_intent = new Intent( GameIdConstants.ABOUT_ACTION,
                                          null,
                                          this,
                                          AboutActivity.class);
       
        host.addTab( host.newTabSpec( GameIdConstants.ABOUT_TAG)
                         .setIndicator( getText( R.string.about_label),
                                        getResources().getDrawable( R.drawable.about))
                         .setContent( about_intent));
        host.addTab( host.newTabSpec( GameIdConstants.HELP_TAG)
                         .setIndicator( getText( R.string.help_label),
                                        getResources().getDrawable( R.drawable.help))
                         .setContent( help_intent));
    }
}
